# 7
# 111

# 11100

# 10
# 100
# 1000

import time

import timeit


def test():
    2 * 1024


#
#
# stattime = time.time()
#
# i = 0
# while i < 10000000:
#     2 << 10
#     i += 1
#
# endtime = time.time()
# # 1.4414055347442627
# last = endtime - stattime
# print(last)

#
def test1():
    2 << 10


t = timeit.timeit('test()', number=10000000, setup="from __main__ import test")
t2 = timeit.timeit('test1()', number=10000000, setup="from __main__ import test1")
t3 = timeit.timeit('2 << 10', number=10000000)


print(t)
print(t2)
print(t3)

# def test():
#     """Stupid test function"""
#     L = [i for i in range(100)]


# if __name__ == '__main__':
#     import timeit

# print(timeit.timeit("test()", setup="from __main__ import test"))



# ARGB  加上透明度
# A FF  一个字节

# 一个像素点
# R  G  B
# ff ff ff

# 0000 0000
# 1111 1111

# fff
